#include <iostream>
#include <string>
#include <cstdlib>

int main() {
    // 设置环境变量进行测试
    setenv("PROJ_ROOT", "/home/apachee/trunk/Crystal/CrystalFlowAnalyzer/a9soc", 1);
    
    // 测试环境变量获取
    const char* proj_root = getenv("PROJ_ROOT");
    if (proj_root) {
        std::cout << "PROJ_ROOT = " << proj_root << std::endl;
    } else {
        std::cout << "PROJ_ROOT not set" << std::endl;
    }
    
    return 0;
}